cmake_minimum_required(VERSION 3.5)

project(cartesian Fortran)


include_directories(./)

set(
    source_list
    bcond.f conver.f dissip.f dissip2.f fluxcen.f fluxcusp.f fluxroe.f 
          getaddr.f getparms.f iniflow.f inigrid.f inject.f interpol.f 
          irsmoo.f lrcusp.f lrroe.f main.f mgsolver.f output.f prolong.f 
          rchar.f restrict.f rgrid.f rsolut.f solver.f srcterm.f tstep.f 
          wsolut.f
)

set(exe_name "laval.out")

add_executable(${exe_name}  ${source_list})

# set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/cgns)



# 如果是编译release版本的话，
# mkdir Release
# cd Release
# cmake -DCMAKE_BUILD_TYPE=Release ..
# make

# 如果是编译debug版本的话，
# mkdir Debug
# cd Debug
# cmake -DCMAKE_BUILD_TYPE=Debug ..
# make

